<!DOCTYPE html>
<html lang="zh-CN"><head>
	<meta charset="UTF-8">
	<title>{$title}</title>
	<link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/website/left_right_common.css?v=20140311">
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/jquery-1.8.2.min.js"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
	<meta http-equiv="Cache-Control" content="max-age=0">
	<meta name="MobileOptimized" content="240">
	<meta name="apple-touch-fullscreen" content="YES">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,  minimum-scale=1.0, maximum-scale=1.0">
	<meta name="viewport" content="width=device-width">
</head>
<body class="carPd">
	<header>
		<img src="{$MainArticles[0]['picurl']}" alt="">
	</header>
	<div class="content">
		<div class="row-fluid pdTxt">
			<h3>{$MainArticles[0]['title']}</h3>
		</div>
		<volist name="ModuleArticles" id="module">
			<if condition="($key % 2) eq 0">
				<div class="row-fluid">
					<if condition="($key % 3) eq 0">
						<div class="span6">
					<elseif condition = "($key % 3) eq 2" />
						<div class="span5">
					<else />
						<div class="span12">
					</if>
					<a href="{$module.url}">
						<img src="{$module.picurl}" alt="">
					</a>
					<p>{$module.title}</p>
					</div>
			</if>
			<if condition="($key % 2) eq 1">
				<if condition="($key % 3) eq 1">
					<div class="span6">
				<elseif condition = "($key % 3) eq 0" />
					<div class="span7">
				<else />
					<div class="span12" style="margin: .5em 0;">
				</if>
				<a href="{$module.url}">
					<img src="{$module.picurl}" alt="">
				</a>
				<p>{$module.title}</p>
				</div>
			</div>
			</if>
		</volist>
	<php>if(count($ModuleArticles) %2 == 1) { echo '</div>';}</php>
	
	<notempty name="footerTpl">
	<footer>
	<volist name="footer" id="ft" mod="2">
		<eq name="mod" value="0">
		<div class="row-fluid">
			<div class="span6 textl">
				<a href="{$ft.url}">
				{$ft.title}
				</a>
			</div>
		</eq>
		<eq name="mod" value="1">
			<div class="span6 textr">
				<a href="{$ft.url}">
					{$ft.title}
				</a>
			</div>
		</div>
		</eq>
	</volist>
	<php>if(count($footer) %2 == 1) { echo '</div>';}</php>
	</footer>
	</notempty>
</div>
<script>
function report(link, fakeid, action_type){
    var parse_link = parseUrl(link);
    if(parse_link == null)
    {
      return ;
    }
    var query_obj = parseParams( parse_link['query_str'] );
    query_obj['action_type'] = action_type;
    query_obj['uin'] = fakeid;
    var report_url = '/mp/appmsg/show?' + jQuery.param( query_obj );
    jQuery.ajax({
      url: report_url,
      type: 'POST',
      timeout: 2000
    })
 };
function share_scene(link, scene_type) {
	// Android无法会截取encode的参数，所以改用直接添加参数的方式
	var share_url = link + '&scene=' + scene_type;
	return share_url;
};
</script>
	<script type="text/javascript">
		wx_share.init({
			"title":"{$title}",
			"desc":'{$shareinfo}',
			"link":location.href,
			"imgUrl": '{$sharepicurl}',
			"pkg":{
				"appId": '{$pkg.appId}',
				"timestamp": '{$pkg.timestamp}',
				"nonceStr": '{$pkg.nonceStr}',
				"signature": '{$pkg.signature}'
			},
			success:function(config,shareType){
			}
		});
	</script>
</body></html>